<?php
/**
 * Created by PhpStorm.
 * User: WangShiPeng
 * Date: 2018/4/18
 * Time: 11:17
 */

namespace app\index\controller;
use app\index\model\Product as ProductModel;

class Product
{
    public function index()
    {
        $limit = 3;
        $arr = (new ProductModel)->where("index","1")->paginate($limit);
        return json($arr);

    }


}